<layout name="inner"/>
	
<load href="__PUBLIC__/{:UIKIT}/css/components/datepicker.almost-flat.min.css"/> 
<load href="__PUBLIC__/{:UIKIT}/js/components/datepicker.min.js"/> 
<load href="__PUBLIC__/{:UIKIT}/js/components/lightbox.min.js"/> 
<form class="uk-form">
    <div class="uk-grid">
		<div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.amount}:<input type="text" name="ar_amount" placeholder="" class="uk-width-1-1"></div>
		 <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.reason}:<input type="text" name="ar_remark" placeholder="" class="uk-width-1-1"></div>

		 <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.start_time}:<input type="text" name="st_time_start"  data-uk-datepicker="{format:'YYYY-MM-DD'}" placeholder="" class="uk-width-1-1"></div>
		  <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.end_time}:<input type="text" name="st_time_end"  data-uk-datepicker="{format:'YYYY-MM-DD'}" placeholder="" class="uk-width-1-1"></div>
        <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.type}:<select name="ar_type">
		<option value="">--</option>
<volist name="Think.lang.resellerstatement_type" id="vo">		
		<option value="{$key}">{$vo}</option>
 </volist>		
		</select>
		</div>				    
    </div>
	<p>
<button type="submit" class="uk-button uk-button-danger">{$Think.lang.search}</button>
</p>
</form>

          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
              <thead>
                <tr>
                  <th>{$Think.lang.add_time}</th>
                  <th>{$Think.lang.amount}</th>
                  <th>{$Think.lang.fee}</th>
                  <th>{$Think.lang.type}</th>
                  <th>{$Think.lang.remark}</th>
				  <th>{$Think.lang.balance}</th>
                </tr>
              </thead>
              <tbody>
				  <volist name="list" id="vo">
                <tr>
                  <td>{$vo.ar_time}</td>
                  <td><eq name="vo.ar_status" value="1">
					  <font color=green>
					  <else/>
					  <font color=red>
				  </eq>
					  {$vo.ar_amount}
				     </font></eq>
				  </td>
                  <td>{$vo.ar_fee}</td>
                  <td>{$vo.ar_type|resellerstatementType}</td>
                  <td>{$vo.ar_remark}</td>
				  <td>{$vo.ar_balance}</td>
                </tr>
			</volist>
              </tbody>
            </table>
			{$page}
          </div>